package site.jlopen.entity.vo.project;

import java.util.List;

import lombok.Builder;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import site.jlopen.domain.data.event.KusciaDataColumnEvent;

@Data
@Builder
public class ProjectInvite {

	private String nodeCode;
	
	private Long inviteId;
	
	private Long nodeId;

	private ProjectInviteData data;

	@Getter
	@Setter
	public static class ProjectInviteData {

		private String dataTitle;
		
		private String domaindataId;

		private List<ProjectInviteDataColumn> columns;

		public ProjectInviteData(String dataTitle, String domaindataId,  List<ProjectInviteDataColumn> columns) {
			super();
			this.dataTitle = dataTitle;
			this.columns = columns;
			this.domaindataId = domaindataId;
		}

	}

	@Getter
	@Setter
	public static class ProjectInviteDataColumn {

		private String name;

		private String type;

		private String remark;

		public ProjectInviteDataColumn(KusciaDataColumnEvent columnInfo) {
			this.name = columnInfo.getColumnName();
			this.type = columnInfo.getColumnType();
			this.remark = columnInfo.getColumnDescription();
		}

	}
}
